package com.todod.service;

import java.util.List;
import java.util.Map;

import com.baomidou.mybatisplus.extension.service.IService;
import com.todod.model.CatalogDetail;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author dyl
 * @date 2022-09-05
 */
public interface ICatalogDetailService extends IService<CatalogDetail> {

	List<CatalogDetail> getListByUserIdAndType(Long _userId, Long classifyId);

	List<CatalogDetail> getListByUserIdAndTypeAndParentId(Long _userId, Long parentId, String typeName);

	void saveData(Long _userId, CatalogDetail catalogDetail);

	void editData(Long _userId, CatalogDetail catalogDetail);

	void copyData(Long _userId, CatalogDetail catalogDetail);

	void moveData(Long _userId, CatalogDetail catalogDetail);

	Map<String, Object> getChildren(Long id);

	void deleteInLogic(Long _userId, Long id, String status);

	Object getInfo(Long code);

	List<CatalogDetail> getTreeListInAuthority(Long classifyId);

	Map<String, Object> getOnlyChildren(Long id);

}
